<?php
error_reporting(E_ALL|E_STRICT);
date_default_timezone_set('Europe/Warsaw');
ini_set('url_rewriter.tags', "a=href,area=href,frame=src,input=src,fieldset=");
set_include_path('.' . PATH_SEPARATOR . '../../slib' . PATH_SEPARATOR . '../library' . PATH_SEPARATOR . get_include_path());

require_once 'Zend/Loader/Autoloader.php';
$loader = Zend_Loader_Autoloader::getInstance()->setFallbackAutoloader(true);

// setup controller
$frontController = Zend_Controller_Front::getInstance();
$frontController->registerPlugin(new Sosweb_Controller_Plugin_ApplicationInit());
$frontController->setBaseUrl('/');
$frontController->setControllerDirectory('../application/controllers');

// run
$frontController->dispatch();